package com.xnchat.pro.enums;

import lombok.Data;


public enum MESSAGETYPE {
    //消息基本类型
    ME(0,"me"),
    MESSAGE(2,"message"),
    LEAVE(3,"leave"),
    JOIN(4,"join"),
    KICK(5,"kick"),
    BAN(5,"ban"),
    MUSIC(6,"music")
    ;
    private int code;
    private String value;
    private MESSAGETYPE(int code,String value) {
        this.code = code;
        this.value = value;
    }
    public int getCode() {
        return code;
    }

    public String getValue() {
        return value;
    }

}
